import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:"/home",
  },
  {
    path: '/home',
    component:()=>import("../views/Home.vue"),
  },
  {
    path: '/about',
    component:()=>import("../views/About.vue"),
  },
  {
    path: '/branch',
    component:()=>import("../views/Branch.vue"),
  },
  {
    path:"/case",
    component:()=>import("../views/Case.vue"),
  },
  {
    path: "/case-details",
    component: () => import("../views/CaseDetails.vue")
  },
  {
    path: "/news",
    component:()=>import("../views/News.vue"),
  },
  {
    path: "/news-details",
    component: () => import("../views/NewDetails.vue")
  },
  {
    path: '/product',
    component:()=>import("../views/Product.vue"),
  },
]

const router = new VueRouter({
  routes
})

export default router
